package org.darcy.entity.privilege;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description="SysUserRole: 用户角色")
@Data
@TableName(value = "sys_user_role")
public class SysUserRole implements Serializable {

	private static final long serialVersionUID = 1;

	@Schema(description = "")
	@TableId(type = IdType.AUTO)
	private Integer id;

	@Schema(description = "用户id")
	@TableField(value = "`user_id`")
	private Integer userId;

	@Schema(description = "角色id")
	@TableField(value = "`role_id`")
	private Integer roleId;

	@Schema(description = "截止日期")
	@TableField(value = "`end_date`")
	private Date endDate;

	@Schema(description = "有效期")
	@TableField(value = "`valid_month`")
	private Integer validMonth;

	@Schema(description = "创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;

	@Schema(description = "更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;

	@Schema(description = "删除标识0：删除1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;

	// 临时字段-s
	@TableField(exist = false)
	private String longName;
	@TableField(exist = false)
	private String groupSn;
	@TableField(exist = false)
	private String ownCompany;
	// 保存的行数据
	@TableField(exist = false)
	private List<SysUserRole> saveRows;
	@TableField(exist = false)
	private String saveRowsJson;
	@TableField(exist = false)
	private String endDateStr;
	// 临时字段-e
}
